package com.example.demo.config;

import com.dhcc.csmsearch.dal.HadoopAuthen;
import com.example.demo.bean.ProjectPath;
import com.example.demo.core.utils.FileReadUtil;
import com.example.demo.jobs.hbase.HBaseBulkProcessor;
import com.example.demo.jobs.hbase.huawei.hadoop.security.LoginUtil;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.security.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLDecoder;

/**
 * HBase 配置类型
 *
 * @author felix
 */
@Configuration
public class HBaseConfig {
    @Bean("HadoopAuthen")
    public HadoopAuthen login() {
        try {
            HadoopAuthen.login();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return new HadoopAuthen();
    }

}
